home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Applications / gdbm-1.7.3 / INSTALL < prev    next >
Text File  |  1994-05-21  |  7KB  |  152 lines

  1. Installation Notes
  2.  
  3. SunOS:
  4.  
  5.     The SunOS stock compiler returns structures in a manner different
  6. from the method GCC uses.  If you are compiling this library using GCC,
  7. and are linking in any other libraries that return structures and are not
  8. compiled with GCC (such as system libraries), you must compile this
  9. library, and your entire application, with the -fpcc-struct-return flag.
  10.  
  11.     On the other hand, if you are certain that this library will
  12. *never* be linked with anything compiled with anything other than normal
  13. GCC, it is safe to compile without the flag.
  14.  
  15.     If you're using pure stock Sun CC, disregard the above.
  16.  
  17. alloca:
  18.  
  19.     GDBM uses alloca, heavily.  If your machine does not support
  20. alloca, GDBM will provide one, and embed it within the library.
  21. Depending on your application, this is not always a good thing, and you
  22. must remove the alloca.c and alloca.o references from the configured
  23. Makefile if you wish this not to take place.
  24.  
  25. ndbm/dbm:
  26.  
  27.     Some systems do not have a default dbm or ndbm library.  On such
  28. systems, some of the test and/or conversion programs included in this
  29. distribution will fail to compile.  This is purposeful, since without
  30. default system libraries, there is nothing to test or convert from.
  31.  
  32. --------
  33.  
  34. This is a generic INSTALL file for utilities distributions.
  35. If this package does not come with, e.g., installable documentation or
  36. data files, please ignore the references to them below.
  37.  
  38. To compile this package:
  39.  
  40. 1.  Configure the package for your system.  In the directory that this
  41. file is in, type `./configure'.  If you're using `csh' on an old
  42. version of System V, you might need to type `sh configure' instead to
  43. prevent `csh' from trying to execute `configure' itself.
  44.  
  45. The `configure' shell script attempts to guess correct values for
  46. various system-dependent variables used during compilation, and
  47. creates the Makefile(s) (one in each subdirectory of the source
  48. directory).  In some packages it creates a C header file containing
  49. system-dependent definitions.  It also creates a file `config.status'
  50. that you can run in the future to recreate the current configuration.
  51.  
  52. Running `configure' takes a minute or two.  While it is running, it
  53. prints some messages that tell what it is doing.  If you don't want to
  54. see the messages, run `configure' with its standard output redirected
  55. to `/dev/null'; for example, `./configure >/dev/null'.
  56.  
  57. To compile the package in a different directory from the one
  58. containing the source code, you must use a version of `make' that
  59. supports the VPATH variable, such as GNU `make'.  `cd' to the directory
  60. where you want the object files and executables to go and run
  61. `configure'.  `configure' automatically checks for the source code in
  62. the directory that `configure' is in and in `..'.  If for some reason
  63. `configure' is not in the source code directory that you are
  64. configuring, then it will report that it can't find the source code.
  65. In that case, run `configure' with the option `--srcdir=DIR', where
  66. DIR is the directory that contains the source code.
  67.  
  68. By default, `make install' will install the package's files in
  69. /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify an
  70. installation prefix other than /usr/local by giving `configure' the option
  71. `--prefix=PATH'.  Alternately, you can do so by consistently giving a value
  72. for the `prefix' variable when you run `make', e.g.,
  73.     make prefix=/usr/gnu
  74.     make prefix=/usr/gnu install
  75.  
  76. You can specify separate installation prefixes for
  77. architecture-specific files and architecture-independent files.  If
  78. you give `configure' the option `--exec-prefix=PATH' or set the
  79. `make' variable `exec_prefix' to PATH, the package will use PATH as
  80. the prefix for installing programs and libraries.  Data files and
  81. documentation will still use the regular prefix.  Normally, all files
  82. are installed using the regular prefix.
  83.  
  84. Another `configure' option is useful mainly in `Makefile' rules for
  85. updating `config.status' and `Makefile'.  The `--no-create' option
  86. figures out the configuration for your system and records it in
  87. `config.status', without actually configuring the package (creating
  88. `Makefile's and perhaps a configuration header file).  Later, you can
  89. run `./config.status' to actually configure the package.  You can also
  90. give `config.status' the `--recheck' option, which makes it re-run
  91. `configure' with the same arguments you used before.  This option is
  92. useful if you change `configure'.
  93.  
  94. Some packages pay attention to `--with-PACKAGE' options to `configure',
  95. where PACKAGE is something like `gnu-libc' or `x' (for the X Window System).
  96. The README should mention any --with- options that the package recognizes.
  97.  
  98. `configure' ignores any other arguments that you give it.
  99.  
  100. If your system requires unusual options for compilation or linking
  101. that `configure' doesn't know about, you can give `configure' initial
  102. values for some variables by setting them in the environment.  In
  103. Bourne-compatible shells, you can do that on the command line like
  104. this:
  105.     CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
  106.  
  107. The `make' variables that you might want to override with environment
  108. variables when running `configure' are:
  109.  
  110. (For these variables, any value given in the environment overrides the
  111. value that `configure' would choose:)
  112. CC        C compiler program.
  113.         Default is `cc', or `gcc' if `gcc' is in your PATH.
  114. INSTALL        Program to use to install files.
  115.         Default is `install' if you have it, `cp' otherwise.
  116.  
  117. (For these variables, any value given in the environment is added to
  118. the value that `configure' chooses:)
  119. DEFS        Configuration options, in the form `-Dfoo -Dbar ...'
  120.         Do not use this variable in packages that create a
  121.         configuration header file.
  122. LIBS        Libraries to link with, in the form `-lfoo -lbar ...'
  123.  
  124. If you need to do unusual things to compile the package, we encourage
  125. you to figure out how `configure' could check whether to do them, and
  126. mail diffs or instructions to the address given in the README so we
  127. can include them in the next release.
  128.  
  129. 2.  Type `make' to compile the package.  If you want, you can override
  130. the `make' variables CFLAGS and LDFLAGS like this:
  131.  
  132.     make CFLAGS=-O2 LDFLAGS=-s
  133.  
  134. 3.  If the package comes with self-tests and you want to run them,
  135. type `make check'.  If you're not sure whether there are any, try it;
  136. if `make' responds with something like
  137.     make: *** No way to make target `check'.  Stop.
  138. then the package does not come with self-tests.
  139.  
  140. 4.  Type `make install' to install programs, data files, and
  141. documentation.
  142.  
  143. 5.  You can remove the program binaries and object files from the
  144. source directory by typing `make clean'.  To also remove the
  145. Makefile(s), the header file containing system-dependent definitions
  146. (if the package uses one), and `config.status' (all the files that
  147. `configure' created), type `make distclean'.
  148.  
  149. The file `configure.in' is used as a template to create `configure' by
  150. a program called `autoconf'.  You will only need it if you want to
  151. regenerate `configure' using a newer version of `autoconf'.
  152.